package org.wang.gift.clients;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.wang.gift.util.AjaxResult;

@FeignClient(value = "GIFT-SYSMANAGE-SERVER",fallbackFactory = SysmanageCilentFallbackfactory.class)
public interface SysmanageCilent {
    @GetMapping("/employee/loginuser/{loginId}")
    AjaxResult empGetByLoginId(@PathVariable("loginId")Long loginId);
    @GetMapping("/tenant/employee/{empId}")
    AjaxResult tenantGetByEmpId(@PathVariable("empId")Long empId);
}
